package com.gdut.util;

import java.beans.PropertyEditorSupport;

public class IntEditor extends PropertyEditorSupport {

	public IntEditor() {

	}

	@Override
	public void setAsText(String text) throws IllegalArgumentException {
		if (text == null || text.equals("")) {
			setValue(0);
		}
	}
}
